//
//  BaseScrollController.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/23.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "BaseScrollController.h"

@interface BaseScrollController () 
@property (nonatomic, strong) UIScrollView *scrollView;
@end

@implementation BaseScrollController
@synthesize scrollView;

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view addSubview:self.scrollView];
    [self.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.scrollView.superview);
    }];
}

#pragma mark - getter
- (UIScrollView *)scrollView {
    if (!_scrollView) {
        _scrollView = [[UIScrollView alloc] init];
        _scrollView.delegate = self;
    }
    return _scrollView;
}
@end
